// router/adminRoutes.js
const adminRoutes = [
    {
        path: 'users',
        name: 'AdminUsers',
        component: () => import('@/views/admin/UserManagement.vue'),
        meta: {
            title: '用户管理',
            requiresAuth: true,
            requiresAdmin: true
        }
    },

    {
        path: 'system',
        name: 'AdminSystem',
        component: () => import('@/views/admin/SystemConfig.vue'),
        meta: {
            title: '系统配置',
            requiresAuth: true,
            requiresAdmin: true
        }
    },

    {
        path: '',
        redirect: { name: 'AdminUsers' }
    }
]

export default adminRoutes